import * as React from 'react';
import { Tabs } from 'antd';

const DeptGroupTab = ({ activeKey, onChange, children }) =>
    <Tabs activeKey={activeKey} onChange={onChange} className="ant-tabs-full ant-tabs-full2">
        <Tabs.TabPane key="dept" tab="团队">
            {activeKey === 'dept' ? children : null}
        </Tabs.TabPane>
        <Tabs.TabPane key="group" tab="群组">
            {activeKey === 'group' ? children : null}
        </Tabs.TabPane>
    </Tabs>

export default DeptGroupTab;